package com.itheima.mapper;

import com.itheima.pojo.Goods;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsMapper {

    @Insert("insert into goods values (null,#{name},#{price},#{description});")
    void add(Goods goods);

    @Select("select * from goods")
    List<Goods> findAll();
}
